home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
SNIP9_91.ARJ
/
UNIX2DOS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-12
|
257b
|
16 lines
/*
** UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
*/
#include <stddef.h>
#include <string.h>
char *unix2dos(char *path)
{
char *p;
while (NULL != (p = strchr(path, '/')))
*p = '\\';
return path;
}